package cn.imvc.app.models;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.util.matcher.RequestMatcher;

import cn.imvc.app.entities.Resource;
import cn.imvc.data.domain.ViewRequest;

public interface ResourceModel {
	
	List<Resource> findResources();
	
	LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> getRequestMap();
	
	Page<Resource> find(ViewRequest viewRequest);
	
	Resource get(int id);

	Resource save(Resource resource);

	Resource update(int id ,Resource resource);

	void delete(int id);

	void deleteBatch(int[] ids);
}
